
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;


namespace SilverlightHVP.Tests
{
   [TestClass]
   public class ItemsViewModelTests
   {
      
      [TestMethod]
      public void ItemsProperty_ShouldNotBeNull()
      {
         StateMaintainer s = new StateMock(0);
         var itemsVM = new ItemsVM(s);
         Assert.IsNotNull( itemsVM.Items );
      }

      [TestMethod]
      public void ItemsProperty_ShouldNotBeEmpty()
      {
         StateMaintainer s = new StateMock(0);
         var itemsVM = new ItemsVM( s );

         Assert.AreNotEqual( 0, itemsVM.Items.Count);
      }

      [TestMethod]
      public void ItemsProperty_ShouldReturnExpectedItem()
      {
         const int IDOfSet3 = 0;

         StateMaintainer s = new StateMock(IDOfSet3);
         var itemsVM = new ItemsVM( s );
         var item = itemsVM.Items.First();
      }
   }
}
   